package com.action.background;

import java.util.List;
import java.util.Map;

import com.enetiy.Version;
import com.opensymphony.xwork2.ActionContext;
import com.service.VersionService;

public class GuanLiDataAction {
		private VersionService versionService;
		public String getVersionList(){
			Map<String, Object> request = ActionContext.getContext().getContextMap();
			try {
				List<Version> vers = versionService.selectVersionList();
				request.put("vers", vers);
			} catch (Exception e) {
				e.printStackTrace();
				return "err";
			}
			return "getVersionList";	
		}

		
		
		public void setVersionService(VersionService versionService) {
			this.versionService = versionService;
		}

		
}
